package com.paishen.peiniwan.module.profile;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.paishen.peiniwan.BaseActivity;
import com.paishen.peiniwan.R;
import com.paishen.common.widget.TitleLayout;

/**
 * Created by peng on 2015/12/17.
 */
public class ProfileBalanceCouponActivity extends BaseActivity {

    private TitleLayout layTitle;
    private MainProfileCouponLayout layProfileCoupon;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_profile_balance_coupon);

        TextView viewCouponAdd = (TextView) LayoutInflater.from(this).inflate(R.layout.layout_title_menu_text, null);
        viewCouponAdd.setText(R.string.add);
        viewCouponAdd.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                layProfileCoupon.showCouponAddDialog();
            }
        });

        layTitle = (TitleLayout) findViewById(R.id.lay_title);
        layTitle.pushContent(makeBackView(), getString(R.string.balance_coupon), viewCouponAdd, false);

        layProfileCoupon = (MainProfileCouponLayout) findViewById(R.id.lay_coupon);
    }
}
